
<?php
namespace ApprovalFlow;

use think\Service;

class ServiceProvider extends Service
{
    public function register()
    {
        $this->app->bind('approvalflow', function () {
            return new ApprovalFlow(config('approvalflow'));
        });
    }

    public function boot()
    {
        $this->publishes([
            __DIR__.'/../config/approvalflow.php' => config_path('approvalflow.php'),
        ], 'approvalflow-config');
    }
}
